package csu.web.credit_bank.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 论坛主题表
 * @TableName posts
 */
@TableName(value ="posts")
@Data
public class Posts {
    /**
     * 论坛ID，由ID池分配
     */
    @TableId
    private String id;

    /**
     * 发起人用户ID，关联users(id)
     */
    private String author;

    /**
     * 论坛标题
     */
    private String title;

    /**
     * 论坛描述
     */
    private String content;

    /**
     * 点赞数
     */
    private Integer likes;

    /**
     * 发布时间
     */
    private Date createTime;


    /**
     * 
     */
    private String tags;

    /**
     * 
     */
    private String filtertype;

    @TableField(exist = false)
    private Integer commentCount;
    @TableField(exist = false)
    private Boolean liked;
}